import 'package:flutter/material.dart';

class SettingPage extends StatefulWidget {
  final Map arguments;
  SettingPage({Key key, this.arguments}) : super(key: key);

  @override
  _SettingPageState createState() => _SettingPageState();
}

class _SettingPageState extends State<SettingPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('SettingPage')),
      body: ListView(
        children: <Widget>[
          GestureDetector(
            child: Container(
              padding: EdgeInsets.fromLTRB(15.0, 0.0, 15.0, 0.0),
              height: 40.0,
              alignment: Alignment.centerLeft,
              child: Text('注册 / 登录'),
              decoration: BoxDecoration(border: Border(bottom: BorderSide(width: 0.5, color: Color(0xffe5e5e5)))),
            ),
            onTap: () {
              Navigator.pushNamed(context, '/loginPage', arguments: {});
            },
          )
        ],
      ),
    );
  }
}
